package com.kc.business.domain;

import lombok.Data;

import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;

/**
 * @ClassName BizScenicFaceDevice
 * @Description 管理后台景区硬件管理model
 * @Author wangdongliang
 * @Date 2021/6/2 9:01
 */
@Data
@Table(name = "kc_scenic_face_device")
public class BizScenicFaceDevice {
    /*主键id*/
    @Id
    private Integer id;
    /*票务系统景区id*/
    @NotNull(message = "景区id不能为空")
    private Integer ticketScenicId;
    @NotEmpty(message = "设备sn不能为空")
    private String deviceSn;
    @NotEmpty(message = "设备名称不能为空")
    private String deviceName;
    @NotNull(message = "状态值不能为空")
    private Integer status;
    /*删除标识:1已删除，0未删除*/
    private Integer isDeleted = 0;
    /*景区名称*/
    @Transient
    private String scenicName;
    private LocalDateTime createTime;
    private LocalDateTime updateTime;
}
